import chat_da


def handle_message(chat_history: str, model_name: str, chat_mode: str, knowledge_base: str) -> str:
    """
    :message 用户消息
    :param chat_history: 对话历史
    :param model_name: 模型名
    :param chat_mode: 对化模式
    :param knowledge_base: 知识库
    """
    try:
        return chat_da.handle_message(chat_history, model_name, chat_mode, knowledge_base)
    except Exception as e:
        return "抱歉，尝试回答问题时发生了问题时发生了问题"


